
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<%@ page import="mybatis.pojo.Grade" %>
<%@ page import="mybatis.pojo.Subject" %>
<%@ page import="mybatis.services.GradeService" %>
<%@ page import="mybatis.services.SubjectService" %>
<%@ page import="java.util.List" %>
<%@ page import="mybatis.util.StrUtil" %>
<script src="js/jquery.js"></script>

<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>学生管理系统</title>
    <link rel="stylesheet" href="css/public.css"/>
    <link rel="stylesheet" href="css/style.css"/>
</head>
<body>
<%
    request.setCharacterEncoding("utf-8");
    int id = StrUtil.toInt( request.getParameter("gid"));
    out.print(id);
    Grade grade = GradeService.ME.find(id);
%>


<!--主体内容-->
<%@include file="checkLogin.jsp"%>
<section class="publicMian ">
    <div class="right">
        <div class="location">
            <strong>你现在所在的位置是:</strong>
            <span>课程管理页面 >> 课程修改页</span>
        </div>
        <div class="providerAdd">
            <form action="doUpdateGrade.jsp" method="post">
                <!--div的class 为error是验证错误，ok是验证成功-->
                <div class="">
                    <label for="gid">年级id：</label>
                    <input type="number"   id="gid" name="gid"  VALUE="<%=grade.getId()%>" readonly/>
                    <span>*</span>
                </div>
                <div >
                    <label for="gname">请输入年级名称：</label>
                    <input type="text"  name="gname" id="gname" value="<%=grade.getGname()%>"/>
                    <span>*</span>
                </div>
                <div>

                    <span ></span>
                </div>
                <div>

                    <span></span>

                </div>
                <div>
                    <span></span>
                </div>
                <div>
                    <span></span>

                </div>
                <div>
                    <span></span>

                </div>
                <div>
                    <span></span>

                </div>
                <div class="providerAddBtn">
                    <!--<a href="#">保存</a>-->
                    <!--<a href="providerList.html">返回</a>-->
                    <input type="submit" value="保存" onclick=""/>
                    <input type="button" value="返回" onclick="history.back(-1)"/>
                </div>
            </form>
        </div>

    </div>
</section>
<script>

</script>
<footer class="footer">
</footer>
<script src="js/time.js"></script>

</body>
</html>